﻿package org.xhs.report.common.ui.toolbar
{
    import flash.events.*;

    public class LayoutInfo extends Object
    {
        protected var _left:Number;
        protected var _right:Number;
        protected var _top:Number;
        protected var _bottom:Number;
        protected var _offsetCenterHorizontal:Number;
        protected var _offsetCenterVertical:Number;
        protected var _widthPercent:Number;
        protected var _heightPercent:Number;
        protected var _dispatcher:EventDispatcher;

        public function LayoutInfo(param1:EventDispatcher = null, param2:Number = NaN, param3:Number = NaN, param4:Number = NaN, param5:Number = NaN, param6:Number = NaN, param7:Number = NaN, param8:Number = NaN, param9:Number = NaN)
        {
            this._dispatcher = param1;
            this._top = param2;
            this._right = param3;
            this._bottom = param4;
            this._left = param5;
            this._offsetCenterHorizontal = param6;
            this._offsetCenterVertical = param7;
            this._widthPercent = param8;
            this._heightPercent = param9;
            return;
        }// end function

        protected function calculateBounds() : void
        {
            return;
        }// end function

        public function get left() : Number
        {
            return this._left;
        }// end function

        public function set left(param1:Number) : void
        {
            this._left = param1;
            this.propertyChange();
            return;
        }// end function

        public function get right() : Number
        {
            return this._right;
        }// end function

        public function set right(param1:Number) : void
        {
            this._right = param1;
            this.propertyChange();
            return;
        }// end function

        public function get top() : Number
        {
            return this._top;
        }// end function

        public function set top(param1:Number) : void
        {
            this._top = param1;
            this.propertyChange();
            return;
        }// end function

        public function get bottom() : Number
        {
            return this._bottom;
        }// end function

        public function set bottom(param1:Number) : void
        {
            this._bottom = param1;
            this.propertyChange();
            return;
        }// end function

        public function get offsetCenterHorizontal() : Number
        {
            return this._offsetCenterHorizontal;
        }// end function

        public function set offsetCenterHorizontal(param1:Number) : void
        {
            this._offsetCenterHorizontal = param1;
            this.propertyChange();
            return;
        }// end function

        public function get offsetCenterVertical() : Number
        {
            return this._offsetCenterVertical;
        }// end function

        public function set offsetCenterVertical(param1:Number) : void
        {
            this._offsetCenterVertical = param1;
            this.propertyChange();
            return;
        }// end function

        public function get offsetCenterH() : Number
        {
            return this._offsetCenterHorizontal;
        }// end function

        public function set offsetCenterH(param1:Number) : void
        {
            this._offsetCenterHorizontal = param1;
            this.propertyChange();
            return;
        }// end function

        public function get offsetCenterV() : Number
        {
            return this._offsetCenterVertical;
        }// end function

        public function set offsetCenterV(param1:Number) : void
        {
            this._offsetCenterVertical = param1;
            this.propertyChange();
            return;
        }// end function

        public function get widthPercent() : Number
        {
            return this._widthPercent;
        }// end function

        public function set widthPercent(param1:Number) : void
        {
            if (param1 > 100 || param1 < 0)
            {
                return;
            }
            this._widthPercent = param1;
            this.propertyChange();
            return;
        }// end function

        public function get heightPercent() : Number
        {
            return this._heightPercent;
        }// end function

        public function set heightPercent(param1:Number) : void
        {
            if (param1 > 100 || param1 < 0)
            {
                return;
            }
            this._heightPercent = param1;
            this.propertyChange();
            return;
        }// end function

        protected function propertyChange() : void
        {
            if (this._dispatcher)
            {
                this._dispatcher.dispatchEvent(new Event(Event.CHANGE));
            }
            return;
        }// end function

    }
}
